<template>
    <div class="BingMapsImageryProvider">
        <cesium-viewer @viewerAlready="viewerAlready">
        </cesium-viewer>
    </div>
</template>

<script>
    import CesiumViewer from "../../CesiumViewer";
    import {addAdditionalLayerOption} from "../../../utils/layersHandler";
    export default {
        name: "BingMapsImageryProvider",
        //import引入的组件需要注入到对象中才能使用",
        components: { CesiumViewer},
        data() {
            //这里存放数据",
            return {}
        },
        //方法集合",
        methods: {
            viewerAlready() {
                addAdditionalLayerOption(
                    "BingMapsImageryProvider",
                    new Cesium.BingMapsImageryProvider({
                        url : 'https://dev.virtualearth.net',
                        key : 'get-yours-at-https://www.bingmapsportal.com/',
                        mapStyle : Cesium.BingMapsStyle.AERIAL
                    })
                )
            }
        }
    }
</script>

